class Person {
  late String name;
  late int age;
  Person(this.name, this.age);
  printInfo() {
    print('名字：$name======年龄：$age');
  }
}

void main() {
  Person person = new Person('张三', 18);
  person.printInfo();
}